package com.fantasy.service.impl;

import com.fantasy.dao.CommentDao;
import com.fantasy.dao.impl.CommentDaoImpl;
import com.fantasy.entity.Comment;
import com.fantasy.service.CommentService;

import java.util.List;

public class CommentServiceImpl implements CommentService {
    private CommentDao commentDao=new CommentDaoImpl();
    @Override
    public int insert(Comment comment) {
        return commentDao.insert(comment);
    }

    @Override
    public List<Comment> queryVideoComment(int videoId) {
        return commentDao.queryVideoComment(videoId);
    }
}
